import React, { Component } from 'react'

export default class Index extends Component {
  state = {
    goodPersons: [
      { id: 1001, name: '欧阳锋', address: '西域' },
      {
        id: 1002,
        name: '邹思敏',
        address: '2305'
      },
      {
        id: 1003,
        name: '张文清',
        address: '2305'
      }
    ]
  }

  render () {
    return (
      <div>
        Index
        <ul>
          {this.state.goodPersons.map(item => {
            return (
              <li key={item.id}>
                {item.name} {item.address}
              </li>
            )
          })}
        </ul>
      </div>
    )
  }
}
